From c57de7d5ae7dd3fd6417f814c6a15dc1f7ded13c Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Fri, 15 Jul 2011 18:13:28 +0100 Subject: [PATCH] xl: log domain suspension. Other shutdown reasons all end up saying something useful while suspend does not. With this patch the log looks like: Domain 670 is dead Domain has suspended. Done. Exiting now Signed-off-by: Ian Campbell Acked-by: Ian Jackson Committed-by: Ian Jackson --- tools/libxl/xl_cmdimpl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index dafd741dae..28adcef86c 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1104,6 +1104,7 @@ static int handle_domain_death(libxl_ctx *ctx, uint32_t domid, libxl_event *even action = d_config->on_reboot; break; case SHUTDOWN_suspend: + LOG("Domain has suspended."); return 0; case SHUTDOWN_crash: action = d_config->on_crash; -- 2.30.2